struct st{ int a;int b[2];}a;

来源:百度知道 编辑:UC知道 时间:2024/05/27 08:04:21
若有如下说明,则正确是( )
struct st
{
int a;int b[2];}a;
A 结构体变量a与结构成员a同名,定义是非法的
B 程序只在执行到定义在才为结构体st分配存储单元
C 程序运行时结构体st分配6个字节存储单元]
D 类型名struct可以通过extern关键字提前引用(即引用在前,说明在后)

D

struct st{ int a;int b[2];}a;的意思是:
struct st{ int a;int b[2];};// 定义一个st结构
st a; // 声明一个st类型的变量
选项就由你自己来做吧。

的发个个发他日和年他日和年

D
我认为的